package com.thinkTank.oa.entity;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;

/**
 * 数据字典
 * @date 2018-08-02
 * @author 董力
 *
 */
public class Dictiontry implements Serializable {

	private static final long serialVersionUID = 1L;
	
	/**唯一标识*/
	private Integer pid;
	/**分组的名称*/
	@NotEmpty(message="分组名不能为空")
	private String groupName;
	/**names*/
	private String names;
	/**值*/
	@NotEmpty(message="值不能为空")
	private String worth;
	/**排序*/
	private Integer sort;
	/**父id*/
	private String parentId;
	/**备注1*/
	private String remark1;
	/**备注2*/
	private String remark2;
	/**parent*/
	private Dictiontry parent;
	
	
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public String getNames() {
		return names;
	}
	public void setNames(String names) {
		this.names = names;
	}
	public String getWorth() {
		return worth;
	}
	public void setWorth(String worth) {
		this.worth = worth;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public String getRemark1() {
		return remark1;
	}
	public void setRemark1(String remark1) {
		this.remark1 = remark1;
	}
	public String getRemark2() {
		return remark2;
	}
	public void setRemark2(String remark2) {
		this.remark2 = remark2;
	}
	public Dictiontry getParent() {
		return parent;
	}
	public void setParent(Dictiontry parent) {
		this.parent = parent;
	}
	@Override
	public String toString() {
		return "Dictiontry [pid=" + pid + ", groupName=" + groupName + ", names=" + names + ", worth=" + worth
				+ ", sort=" + sort + "]";
	}
	
	
}
